﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/SideNav.Master" AutoEventWireup="true" CodeBehind="UserManager.aspx.cs" Inherits="Planetwork.Admin.UserManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul class="breadcrumb" style="margin-bottom:20px;">
        <li><span class="glyphicon glyphicon-home"></span> 首页</li>
        <li class="actve">用户管理</li>
    </ul>

    <div class="col-sm-10">
        <asp:GridView ID="showUserInfo" runat="server" AutoGenerateColumns="false" CssClass="table table-hover table-responsive" OnRowCommand="showUserInfo_RowCommand">
            <Columns>
                <asp:BoundField DataField="UserName" HeaderText="UserName" />
                <asp:BoundField DataField="Email" HeaderText="Email" />
                <asp:BoundField DataField="Name" HeaderText="Name" />
                <asp:BoundField DataField="RegTime" HeaderText="RegDate" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button runat="server" ID="deleteBtn" CommandName="del" CommandArgument='<%# Eval("ID") %>' CssClass="btn btn-danger btn-sm center-block" Text="Delete" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button runat="server" ID="disable" CommandName="disable" CommandArgument='<%# Eval("ID") %>' CssClass="btn btn-warning btn-sm center-block" Text="Disable" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>

    <ul class="pagination col-sm-10">
        <li> <asp:Button Text="首页" runat="server" CssClass="btn btn-default" OnClick="Paging_Click" /></li>
        <li> <asp:PlaceHolder ID="pagingBtnGroup" runat="server"></asp:PlaceHolder> </li>
        <li> <asp:Button Text="末页" runat="server" CssClass="btn btn-default" OnClick="Paging_Click" /></li>
    </ul>

</asp:Content>
